﻿<Window x:Class="Refugees.Views.Windows.Uslugi"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Refugees.Views.Windows"
        mc:Ignorable="d"
         Title="AuthorizationWindow" Height="550" Width="800">
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF819B3D"/>
                <GradientStop Color="#FF4A6A68" Offset="0.455"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="0.1*"/>
            <RowDefinition Height="0.2*"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <Menu Grid.Row="0" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <UniformGrid Rows="1"/>
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <MenuItem HorizontalAlignment="Stretch" Header="Новости"  FontSize="20" FontWeight="Bold" HorizontalContentAlignment="Center" Click="NewsClick" FontFamily="Times New Roman"/>
            <MenuItem HorizontalAlignment="Stretch"  Header="Услуги"  FontSize="20" FontWeight="Bold" FontFamily="Times New Roman" Click="UsliguClick"/>
            <MenuItem HorizontalAlignment="Stretch"  Header="" FontSize="20"  FontWeight="Bold" FontStyle="Italic"/>
            <MenuItem HorizontalAlignment="Stretch"  Header="Организации" Click="ContactsClick" FontSize="20"  FontWeight="Bold" FontFamily="Times New Roman"/>
            <MenuItem HorizontalAlignment="Stretch"  Header="Пользователь"  FontSize="20" FontWeight="Bold" FontFamily="Times New Roman" Click="UserClick" />
        </Menu>

        <Ellipse HorizontalAlignment="Center" VerticalAlignment="Top" 
                 Margin="0, 20, 0, 0"
                 Width="100" Height="50" Grid.RowSpan="2">
            <Ellipse.Fill>
                <ImageBrush Stretch="UniformToFill" ImageSource="/Icon/сердцепомощи.jpg"/>
            </Ellipse.Fill>
        </Ellipse>

        <Label Content="Kind Hend" 
               Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom"
                   Foreground="Black"
                   FontSize="36" FontStyle="Italic" 
                   FontWeight="Bold" FontFamily="Perpetua Titling MT"/>

        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Grid Grid.Column="0">
                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Button Content="Медицинская помощь" Margin="15" Style="{DynamicResource Vhod}"
                            Click="MedClick"
                            Width="297" FontWeight="Bold"/>
                    <Button Content="Гуманитарная помощь" Margin="15"  Click="GumClick"
         Style="{DynamicResource Vhod}" Width="297" FontWeight="Bold"/>
                    <Button Content="Юридическая помощь" Margin="15" Click="UriClick"
     Style="{DynamicResource Vhod}" Width="297" FontWeight="Bold"/>
                    <Button Content="Психологическая помощь" Margin="15" Click="PsycoClick"
     Style="{DynamicResource Vhod}" Width="297" FontWeight="Bold"/>
                </StackPanel>
            </Grid>

            <Grid Grid.Column="1">
                <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
                    <Label Grid.Column="1" Name="LabelHelp"
FontSize="30" 
FontFamily="Times New Roman"  Foreground="Black"/>
                    <TextBox MinHeight="280"
          TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Message}" 
          VerticalAlignment="Top" Grid.RowSpan="2"
          >
                        <TextBox.Resources>
                            <Style TargetType="Border">
                                <Setter Property="CornerRadius" Value="20"/>
                            </Style>
                        </TextBox.Resources>
                    </TextBox>
                    <Button Content="Отправить" Click="Submit"
     Style="{DynamicResource Vhod}" Width="212" FontWeight="Bold"/>
                </StackPanel>
            </Grid>
        </Grid>
    </Grid>
</Window>
